package smu.KYBank;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class KYBlogin extends Activity {
	Button login;
	Button join;
	
	EditText login_id;
	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        login_id = (EditText) findViewById(R.id.login_id);
       // EditText login_pw = (EditText) findViewById(R.id.login_pw);
		 
        
        
        login = (Button) findViewById(R.id.login);
        join = (Button) findViewById(R.id.join);
        
        
        
        login.setOnClickListener(new OnClickListener() {
    		public void onClick(View v) {
    			Intent intent = new Intent(KYBlogin.this, KYBmain.class);
    			intent.putExtra("login_id", login_id.getText().toString());
    			
				startActivity(intent);
				finish();
    		}
    	});
        

		 
        join.setOnClickListener(new OnClickListener() {
    		public void onClick(View v) {
    		}
    	});
    }
}